package com.gasstion.dao;

import com.gasstion.entity.Permission;
import com.gasstion.pojo.PermissionBean;

import java.util.List;

public interface PermissionDao {

    //根据pid查询permission
    public List<Permission> getAllperByPid(int rid);
    public List<Permission> getPerByPid(int rid);
    public List<Permission> getChilid(int rid);
    //根据pid 用parentID查出子分类
    public List<Permission> getAllperByParentId(int pid);

    public List<PermissionBean> query(int pid);
//    public List<PermissionBean> query(int pid);
}
